
<div id="cbp_tmtimeline" class="row ">
	<div  class="col-md-12">
		<div class="panel-without-padding">

			<div class="tabsdemoDynamicTabs" ng-cloak>

				<div class="demo-tab tab{{$index%4}}" style=" text-align: center;">


					<div class="table_mould">
						<div class="thead_mould">
							<ul >
								<li class="col-lg-2 col-md-2 col-xs-2 buildHisTabLeft"></li>
								<li class="col-lg-2 col-md-2 col-xs-2"><span>构建历史</span></li>
								<li class="col-lg-2 col-md-2 col-xs-2">构建时长</li>
								<li class="col-lg-3 col-md-3 col-xs-3">构建类型</li>
								<li class="col-lg-2 col-md-2 col-xs-2">分支类型</li>
							</ul>
						</div>
						<div class="tbody_mould" style="    position: relative;">
							<ul ng-repeat="runInfo in currentPageRunInfos" class="" ng-click="clickService(data)"
									disabled="data.totalStatue == 'updating'?disabled:false" style="background:transparent">
								<li class="col-lg-2 col-md-2 col-xs-2 buildHisTabLeft">
									<span style="" class="buildHistory_Span">{{runInfo.startDate}}</span>

								</li>

								<li class="col-lg-2 col-md-2 col-xs-2 buildLine" ng-click="getBuildDetail(buildInfo.id, runInfo.id, buildInfo, runInfo)" style="cursor: pointer">
									<!--style="border-color:#cc3f44"-->
									<div class="running ing" ng-if="runInfo.isRunning">
										<p  style="background:#ffdda3;width: 5px   ; float: left;"   uib-tooltip="running">&nbsp;
										</p>
										<i class="iconfont icon-crm17 stopImm" ng-click="stop(buildInfo.id, runInfo.id,$event)" style="color: #ffdda3;margin-left: -40px;font-size: 18px"  uib-tooltip="立即停止"></i>
									</div>
									<!--<div class="stoping ing">-->
										<!--<p ng-if="data.totalStatue=='stoping'" style="border-color:#ffdda3"-->
											 <!--title="stoping" tooltip></p>-->
									<!--</div>-->
									<!--<div class="starting ing">-->
										<!--<p ng-if="data.totalStatue=='starting'" style="border-color:#ffdda3"-->
											 <!--title="starting" tooltip></p>-->
									<!--</div>-->
									<div class="running">
										<p ng-if="runInfo.statusTitle=='成功'" style="background:#27ca7b;width: 5px"  uib-tooltip="success">&nbsp;</p>
									</div>
									<div class="error">
										<p ng-if="runInfo.statusTitle == '失败'" style="background:#cc3f44;width: 5px"
											 uib-tooltip="error">&nbsp;</p>

									</div>


									<!--<a ui-sref="cp.servicedetail({service:data, clusterId:data.dbJson.node.clusterId ,serviceName: data.app})"-->
									<!--disabled="data.totalStatue == 'updating'?disabled:false">{{data.app}}</a>-->
									<span style="color: #78B3F8"><span>{{runInfo.id}}</span></span>
									<!--show logs-->

								</li>

								<li class="col-lg-2 col-md-2 col-xs-2">{{runInfo.durationSeconds}}s

								</li>

								<li class="col-lg-3 col-md-3 col-xs-3">{{runInfo.auto_manual}}

								</li>

								<li class="col-lg-2 col-md-2 col-xs-2">
									{{runInfo.branch_type}}：{{runInfo.tag_name}}

								</li>

							</ul>
						</div>
					</div>


					<!--<div ng-controller="TodoController">-->
					<div class="pull-left btn btn-info" style="margin-top:20px;padding:0;">

						<a ui-sref="cp.buildlist" style="color: #fff;padding: 6px 12px;display: block">返回</a>
					</div>
					<div class="pull-right">

						<ul uib-pagination boundary-links="true" items-per-page="numPerPage" ng-model="currentPage"
								total-items="runInfos.length" max-size="3"
								class="pagination-sm" previous-text="&lsaquo;" next-text="&rsaquo;" first-text="&laquo;"
								last-text="&raquo;"></ul>

					</div>
				</div>
			</div>
		</div>
	</div>
</div>




